package cn.zhuangcloud.newversion.cas;

import com.jfinal.aop.Interceptor;
import com.jfinal.aop.Invocation;
import com.jfinal.core.Controller;

public class CasInterceptor implements Interceptor{
    @Override
    public void intercept(Invocation inv) {
        Controller c = inv.getController();
        if (c.getRequest().getMethod().equalsIgnoreCase("post")) {
            c.forwardAction("/cas/doLogin");
        }else{
            inv.invoke();
        }
    }
}
